package com.lu.project.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.lu.project.model.dto.user.LoginFormDTO;
import com.lu.project.model.dto.user.Result;
import com.lu.project.model.dto.user.UserDTO;
import com.lu.project.model.entity.User;
import com.lu.project.model.vo.UserVO;
import com.lu.project.model.vo.user.LoginUserVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * 用户服务
 *
 * @author lu
 */
public interface UserService extends IService<User> {

    /**
     * 注册功能
     * @param userDTO
     */
    Long Register(UserDTO userDTO);

    /**
     * 用户登录
     * @param userAccount
     * @param userPassword
     * @param request
     * @return
     */
    LoginUserVo userLogin(String userAccount, String userPassword, HttpServletRequest request);

    User getLoginUser(HttpServletRequest request);

    boolean isAdmin(HttpServletRequest request);
}
